const path = require('path')

/** config
 * @type {import('rollup').RollupOptions} 
 */
const config = {
    external: ['mysql2'],
    input: path.resolve(__dirname, 'src/main.js'),
    output: [
        {
            file: path.resolve(__dirname, 'dist/mysql.cjs.js'),
            format: 'cjs'
        },
        {
            file: path.resolve(__dirname, 'dist/mysql.esm.js'),
            format: 'es'
        }
    ]
}

module.exports = config